#include <bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[])
{
    int a1, a2, n;
    cin >> a1 >> a2 >> n;

    int c = a2 - a1;

    cout << a1 + (n-1)*c << endl;

    return 0;
}
